package com.rmb.userinfo.controller;

import com.rmb.mart.entity.userinfo.UserCompany;
import com.rmb.userinfo.service.UserCompanyService;

import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 段段
 * @PackageName: com.rmb.userinfo.controller
 * @ClassName: UserCompanyController
 * @Description: (公司信息)表控制层
 * @data: 2021/1/20 15:18
 **/
@RestController
@RequestMapping("userCompany")
public class UserCompanyController {
    /**
     * 服务对象
     */
    @Resource
    private UserCompanyService userCompanyService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public UserCompany selectOne(Long id) {
        return this.userCompanyService.queryById(id);
    }

}